//
//  PongField.h
//
//  Created by Jonathan Saggau on 2007-08-09.
//  Copyright (c) 2007 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>

@interface PongField : NSObject
{
	CGRect fieldRect;
	CGPoint leftFinger;
	CGPoint rightFinger;
	CGRect leftPaddle;
	CGRect rightPaddle;
	int leftScore;
	int rightScore;
	CGRect ballRect;
	float color[4];
}

-(id)initWithFieldRect:(CGRect)aFieldRect;

-(void)drawInContext:(CGContextRef)ctx;
-(void)drawBackgroundInContext:(CGContextRef)ctx;


//accessors
- (CGRect)fieldRect;
- (void)setFieldRect:(CGRect)aFieldRect;
- (CGPoint)leftFinger;
- (void)setLeftFinger:(CGPoint)aLeftFinger;
- (CGPoint)rightFinger;
- (void)setRightFinger:(CGPoint)aRightFinger;
- (CGRect)leftPaddle;
- (void)setLeftPaddle:(CGRect)aLeftPaddle;
- (CGRect)rightPaddle;
- (void)setRightPaddle:(CGRect)aRightPaddle;
- (int)leftScore;
- (void)setLeftScore:(int)aLeftScore;
- (int)rightScore;
- (void)setRightScore:(int)aRightScore;
- (CGRect)ballRect;
- (void)setBallRect:(CGRect)aBallRect;

- (void)setColorRed:(float)r green:(float)g blue:(float)b alpha:(float)a;
@end
